<div class="funcarea">
	<label>参数名</label>
	<select id="searchCondition">
	<option value="deployId">发布ID</option>
	
			
			
					<option value="level">等级</option>	
			
			
			
					<option value="npcId">所属NPC</option>	
			
					<option value="idx">排列顺序</option>	
			
					<option value="pos">位置</option>	
			
					<option value="hp">血量</option>	
			
					<option value="attackId">攻击顺序</option>	
			
					<option value="physicalatk">物理攻击力</option>	
			
					<option value="physicaldef">物理防御力</option>	
			
					<option value="magicatk">魔法攻击力</option>	
			
					<option value="magicdef">魔法防御力</option>	
			
					<option value="furyAttackRate">怒气攻击速率</option>	
			
					<option value="hardAttackRate">重击攻击速率</option>	
			
					<option value="hurtIncValue">伤害增加值</option>	
			
					<option value="hurtDecValue">伤害减少值</option>	
			
					<option value="hurtIncPercent">伤害增加百分比</option>	
			
					<option value="hurtDecPercent">伤害减少百分比</option>	
			
					<option value="skills">技能列表</option>	
			
					<option value="equipment">装备列表</option>	
			
					<option value="style">头饰列表</option>	
			
					<option value="npcunitres">npc英雄资源</option>	
				</select>
	<label>参数值</label>
	<input type="text" id="searchValue"/>
	<a href="javascript:void(0)" onclick="searchnpc_unit()">查询</a>
	<a href="javascript:void(0)" onclick="document.location.reload()">刷新</a>
	<a href="javascript:void(0)" onclick="promptAdd()">增加</a>
	<a href="javascript:void(0)" onclick="promptExport()">导出</a>
	<a href="javascript:void(0)" onclick="extract()">转换NPC英雄数据</a>
	<a href="javascript:void(0)" onclick="publish()">发布NPC英雄</a>
</div>
{% if pageLength > 1 %}
<center>
	<br/>
	{% if pageIndex > 1 %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} - 1)">上一页</a>
	{% endif %}
	<a href="javascript:void(0)" disabled>第{{pageIndex}}/{{pageLength}}页</a>
	{% if pageIndex < pageLength %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} + 1)">下一页</a>
	{% endif %}
	<a href="javascript:void(0)" onclick="go2Page()">跳至</a>第
	<input type="text" size="2" id="pageValue" value="{{pageIndex}}"/>页
	<br/>
</center>
{% endif %}
<div class="dataarea">
	<table>
		<thead>
			<tr>
			<th nowrap>发布ID</th>
			
				<th nowrap>名字</th>
			
				<th nowrap>描述</th>
			
				<th nowrap>等级</th>
			
				<th nowrap>职业要求</th>
			
				<th nowrap>性别要求</th>
			
				<th nowrap>所属NPC</th>
			
				<th nowrap>排列顺序</th>
			
				<th nowrap>位置</th>
			
				<th nowrap>血量</th>
			
				<th nowrap>攻击顺序</th>
			
				<th nowrap>物理攻击力</th>
			
				<th nowrap>物理防御力</th>
			
				<th nowrap>魔法攻击力</th>
			
				<th nowrap>魔法防御力</th>
			
				<th nowrap>怒气攻击速率</th>
			
				<th nowrap>重击攻击速率</th>
			
				<th nowrap>伤害增加值</th>
			
				<th nowrap>伤害减少值</th>
			
				<th nowrap>伤害增加百分比</th>
			
				<th nowrap>伤害减少百分比</th>
			
				<th nowrap>技能列表</th>
			
				<th nowrap>装备列表</th>
			
				<th nowrap>头饰列表</th>
			
				<th nowrap>npc英雄资源</th>
							<th nowrap class="operator">----------操作---------</th>
			</tr>
		</thead>
		<tbody>
		{% for npc_unit in npc_units %}
			<tr id="row_{{ npc_unit.id }}">
				<td><a href="javascript:void(0)" onclick="promptMenu({{ npc_unit.id }})">{{ npc_unit.deployId }}</a></td>
				
					
						<td>{{ npc_unit.name }}</td>
									
					
						<td>{{ npc_unit.desc }}</td>
									
					
						<td>{{ npc_unit.level }}</td>
									
											<td>
							<select disabled>
																
									<option value="0" {% ifequal 0 npc_unit.career %}selected="selected"{% endifequal %}>职业不限</option>
								
									<option value="1" {% ifequal 1 npc_unit.career %}selected="selected"{% endifequal %}>武将</option>
								
									<option value="2" {% ifequal 2 npc_unit.career %}selected="selected"{% endifequal %}>文官</option>
															</select>
						</td>
									
											<td>
							<select disabled>
																
									<option value="0" {% ifequal 0 npc_unit.gender %}selected="selected"{% endifequal %}>性别不限</option>
								
									<option value="1" {% ifequal 1 npc_unit.gender %}selected="selected"{% endifequal %}>男</option>
								
									<option value="2" {% ifequal 2 npc_unit.gender %}selected="selected"{% endifequal %}>女</option>
															</select>
						</td>
									
					
						<td>{{ npc_unit.npcId }}</td>
									
					
						<td>{{ npc_unit.idx }}</td>
									
					
						<td>{{ npc_unit.pos }}</td>
									
					
						<td>{{ npc_unit.hp }}</td>
									
					
						<td>{{ npc_unit.attackId }}</td>
									
					
						<td>{{ npc_unit.physicalatk }}</td>
									
					
						<td>{{ npc_unit.physicaldef }}</td>
									
					
						<td>{{ npc_unit.magicatk }}</td>
									
					
						<td>{{ npc_unit.magicdef }}</td>
									
					
						<td>{{ npc_unit.furyAttackRate }}</td>
									
					
						<td>{{ npc_unit.hardAttackRate }}</td>
									
					
						<td>{{ npc_unit.hurtIncValue }}</td>
									
					
						<td>{{ npc_unit.hurtDecValue }}</td>
									
					
						<td>{{ npc_unit.hurtIncPercent }}</td>
									
					
						<td>{{ npc_unit.hurtDecPercent }}</td>
									
					
						<td>{{ npc_unit.skills }}</td>
									
					
						<td>{{ npc_unit.equipment }}</td>
									
					
						<td>{{ npc_unit.style }}</td>
									
					
						<td>{{ npc_unit.npcunitres }}</td>
													<td class="operator">
					<a href="javascript:editnpc_unit({{ npc_unit.id }})">编辑</a>
					<a href="javascript:removenpc_unit({{ npc_unit.id }})">删除</a>
					<a href="javascript:shownpc_unit({{ npc_unit.id }})">显示JSON</a>
				</td>
			</tr>
		{% endfor %}
		</tbody>
	</table>
</div>
{% if pageLength > 1 %}
<center>
	<br/>
	{% if pageIndex > 1 %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} - 1)">上一页</a>
	{% endif %}
	<a href="javascript:void(0)" disabled>第{{pageIndex}}/{{pageLength}}页</a>
	{% if pageIndex < pageLength %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} + 1)">下一页</a>
	{% endif %}
	<a href="javascript:void(0)" onclick="go2Page()">跳至</a>第
	<input type="text" size="2" id="pageValue" value="{{pageIndex}}"/>页
	<br/>
</center>
{% endif %}
